﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Fuse8.ContentManagementFramework.Administration.Models;
using Fuse8.ContentManagementFramework.Domain;
using Fuse8.ContentManagementFramework.Domain.Special;
using Fuse8.ContentManagementFramework.BizFacade.AdministrationServices;
using Fuse8.ContentManagementFramework.SystemFacade;
using Fuse8.ContentManagementFramework.SystemFacade.Extensions;
using Fuse8.DomainFramework.BusinessService;
using Fuse8.DomainFramework.Common;

namespace Fuse8.ContentManagementFramework.Administration.Controllers
{
    public class CmsConfigurationController : CmsAdminController
    {
        private CmsConfigurationItemService _configurationService = new CmsConfigurationItemService();

        public ActionResult Index()
        {
            var data = _configurationService.GetConfigurationItemsForSite(ContextSite);

            return View(data ?? new List<CmsConfigurationItem>());
        }

        public ActionResult Properties() 
        {
            var data = ContextSite.Metas;

            return View(data);
        }        
    }
}
